package com.gxa.clientkill.service.Impl;

import com.gxa.clientkill.mapper.ShowTicketMapper;
import com.gxa.clientkill.pojo.ShowTicket;
import com.gxa.clientkill.service.ShowTicketService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Jun
 * @version 1.0
 * @date 2020/11/12 9:35
 */

@Service("showTicketService")
public class ShowTicketServiceImpl implements ShowTicketService {

    @Resource
    ShowTicketMapper showTicketMapper;

    @Override
    public List<ShowTicket> list() {
        return showTicketMapper.selectAll();
    }

    @Override
    public Integer del(Integer id) {
        return showTicketMapper.deleteByPrimaryKey(id);
    }
}
